package com.zyk.scaffold.user.controller.tenantrole;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 角色信息响应
 * </p>
 *
 * @author zhouyk
 * @since 2021-09-23
 */
@Data
@ApiModel("角色信息响应")
public class TenantRoleInfosResp implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @ApiModelProperty(value = "角色名称", required = true)
    private String name;

    @ApiModelProperty(value = "角色类型（0：业务角色，1: 管理角色）", required = true)
    private Integer type;

    @ApiModelProperty(value = "是否可用", required = true)
    private Integer enable;

    @ApiModelProperty(value = "备注", required = true)
    private String remark;

    @ApiModelProperty(value = "功能ID", required = true)
    private List<Long> tenantFunctionIds;

    @ApiModelProperty(value = "功能名称", required = true)
    private List<String> functionNames;

    @ApiModelProperty(value = "创建时间", required = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间", required = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建用户", required = true)
    private Long createUser;

    @ApiModelProperty(value = "最后修改用户", required = true)
    private Long updateUser;

    @ApiModelProperty(value = "创建用户名称", required = true)
    private String createUserName;

    @ApiModelProperty(value = "最后修改用户名称", required = true)
    private String updateUserName;

    @ApiModelProperty(value = "已删除 1-已删除 0-未删除", required = true)
    private Boolean deleted;
}
